import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/suppliers_shops_list_entity.dart';

SuppliersShopsListEntity $SuppliersShopsListEntityFromJson(Map<String, dynamic> json) {
  final SuppliersShopsListEntity loginBeanEntity = SuppliersShopsListEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }

  final String? supplierId = jsonConvert.convert<String>(json['supplierId']);
  if (supplierId != null) {
    loginBeanEntity.supplierId = supplierId;
  }

  final String? shopName = jsonConvert.convert<String>(json['shopName']);
  if (shopName != null) {
    loginBeanEntity.shopName = shopName;
  }

  final String? priceModel = jsonConvert.convert<String>(json['priceModel']);
  if (priceModel != null) {
    loginBeanEntity.priceModel = priceModel;
  }

  final double? amount = jsonConvert.convert<double>(json['amount']);
  if (amount != null) {
    loginBeanEntity.amount = amount;
  }

  final String? orderTaker = jsonConvert.convert<String>(json['orderTaker']);
  if (orderTaker != null) {
    loginBeanEntity.orderTaker = orderTaker;
  }

  final String? orderTakerName = jsonConvert.convert<String>(json['orderTakerName']);
  if (orderTakerName != null) {
    loginBeanEntity.orderTakerName = orderTakerName;
  }

  final String? mallShopId = jsonConvert.convert<String>(json['mallShopId']);
  if (mallShopId != null) {
    loginBeanEntity.mallShopId = mallShopId;
  }

  final String? address = jsonConvert.convert<String>(json['address']);
  if (address != null) {
    loginBeanEntity.address = address;
  }
  return loginBeanEntity;
}

Map<String, dynamic> $SuppliersShopsListEntityToJson(SuppliersShopsListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['supplierId'] = entity.supplierId;
  data['shopName'] = entity.shopName;
  data['priceModel'] = entity.priceModel;
  data['amount'] = entity.amount;
  data['orderTaker'] = entity.orderTaker;
  data['orderTakerName'] = entity.orderTakerName;
  data['address'] = entity.address;
  data['mallShopId'] = entity.mallShopId;
  return data;
}
